<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="shortcut icon" th:href="@{/imgs/F.png}">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link th:href="@{/css/style.css}" rel="stylesheet"/>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg" th:style="'background:url(' + @{/imgs/bg.jpg} + ');'" >

<div class="middle-box text-center loginscreen  animated fadeInDown" style="width: 400px;">
    <div>
        <div>

            <h1 class="logo-name">F</h1>

        </div>

        <div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    欢迎使用后台管理系统
                </div>
                <div class="panel-body">
                    <div th:if="${#httpServletRequest.getParameter('error')}" class="alert alert-danger">
                        用户名或密码错误
                    </div>

                    <form class="m-t" role="form" th:action="@{/login}" method="post">
                        <div class="input-group m-b">
                            <span class="input-group-addon"><i class="fa fa-user"></i></span>
                            <input type="text" class="form-control" placeholder="用户名"  id="username" name="username" required="">
                        </div>
                        <div class="input-group m-b">
                            <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                            <input type="password" class="form-control" placeholder="密码"  id="password" name="password" required="">
                        </div>
                        <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>

</body>

</html>
